<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:74:"D:\wwwroot\fangcms_city_add\public/../application/manage\view\one\add.html";i:1494214033;s:80:"D:\wwwroot\fangcms_city_add\public/../application/manage\view\public\header.html";i:1490355172;s:80:"D:\wwwroot\fangcms_city_add\public/../application/manage\view\public\footer.html";i:1474280020;}*/ ?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="__CSS__/style.css" rel="stylesheet"/>
	<title>管理中心</title>

</head>

<body>
<div id="J_ajax_loading" class="ajax_loading">加载中...</div>

<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <?php if(!empty($sub_menu) OR !empty($big_menu)): if(!(empty($big_menu) || (($big_menu instanceof \think\Collection || $big_menu instanceof \think\Paginator ) && $big_menu->isEmpty()))): if(isset($normal)): ?>
        <a class="add fb" href="<?php echo $big_menu['iframe']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php else: ?>
    	<a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo $big_menu['iframe']; ?>" data-title="<?php echo $big_menu['title']; ?>" data-id="<?php echo $big_menu['id']; ?>" data-width="<?php echo $big_menu['width']; ?>" data-height="<?php echo $big_menu['height']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php endif; endif; if(!(empty($sub_menu) || (($sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator ) && $sub_menu->isEmpty()))): if(is_array($sub_menu) || $sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key;if($key != 1): ?><span>|</span><?php endif; ?>
        <a href="<?php echo $val['url']; ?>" class="<?php echo $val['class']; ?>"><em><?php echo $val['name']; ?></em></a>
        <?php endforeach; endif; else: echo "" ;endif; endif; endif; ?>
    </div>
</div>

<!--单网页内容编辑-->
<form id="info_form" action="<?php echo url('One/addDo'); ?>" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">基本信息</li>
			<li>SEO 设置</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th>所属分类 :</th>
						<td><?php echo $cate['name']; ?></td>
					</tr>
			        <tr>
						<th width="100">标题 :</th>
					 	<td><input type="text" name="title" class="input-text" size="60" value=""></td>
					</tr>
					<tr>
						<th>是否外链 :</th>
						<td>
							<input type="radio" name="is_link" value="1">是
							<input type="radio" name="is_link" value="0" checked>否
						</td>
					</tr>
		            <tr id="url" style="display:none;">
						<th>链接地址 :</th>
						<td>
							<input type="text" name="url" class="input-text" size="50">
						</td>
					</tr>
					<tr>
						<th>简介 :</th>
						<td>
							<textarea style="width:800px;height:80px;resize: none;" name="description"></textarea>
						</td>
					</tr>
					<tr id="content">
						<th>内容 :</th>
						<td><script id="info" name="info" type="text/plain"></script></td>
					</tr>
				</table>
			</div>
			<div class="content_list pad_10 hidden">
				<table width="100%" cellspacing="0" class="table_form">
			        <tr>
						<th width="100">SEO 标题 :</th>
					 	<td><input type="text" name="seo_title" class="input-text" size="60" value=""></td>
					</tr>
					<tr>
						<th>SEO 关键词 :</th>
						<td><input type="text" name="seo_keys" class="input-text" size="60" value=""></td>
					</tr>
					<tr>
						<th>SEO 描述 :</th>
						<td><textarea name="seo_desc" cols="80" rows="8"></textarea></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div class="mt10"><input type="submit" value="提交" name="" class="btn btn_submit" style="margin:0 0 10px 10px;"></div>
</div>
<input type="hidden" name="id" value="<?php echo $cate['id']; ?>" />
	<input type="hidden" name="cate_id" value="<?php echo $cate['id']; ?>">
</form>
<script src="__PUBLIC__/js/jquery.min.1.7.2.js"></script>
<script src="__JS__/manage.js"></script>
<script src="__JS__/admin.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = '确定';
    d['cancelValue'] = '取消';
    d['title'] = '标题';
})($.dialog.defaults);
</script>
<script src="__PUBLIC__/js/plugins/formvalidator.js"></script>
<?php if(isset($list_table)): ?>
<script src="__PUBLIC__/js/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script>
<?php endif; ?>

<script type="text/javascript">
	$(function(){
		$('ul.J_tabs').tabs('div.J_panes > div');
		$('input[name="is_link"]').bind('click',function(){
			var v = $(this).val();
			if(v == 1){
				$('#url').show();
				$('#content').hide();
			}else{
				$('#url').hide().find('input').val('');
				$('#content').show();
			}
		});
	});

</script>
<script src="__PUBLIC__/js/plugins/jquery.tools.min.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script src="__PUBLIC__/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
	window.UEDITOR_HOME_URL='__PUBLIC__/js/ueditor/';
	window.onload=function(){
		window.UEDITOR_CONFIG.initialFrameWidth=880;
		window.UEDITOR_CONFIG.initialFrameHeight=500;
		UE.getEditor('info');
		//  upmoreimg();
	}
</script>
</body>
</html>